/*****************************************************************************
 Copyright (c) 2009-2023, Intel Corporation

 Redistribution and use in source and binary forms, with or without
 modification, are permitted provided that the following conditions are met:

     * Redistributions of source code must retain the above copyright notice,
       this list of conditions and the following disclaimer.
     * Redistributions in binary form must reproduce the above copyright
       notice, this list of conditions and the following disclaimer in the
       documentation and/or other materials provided with the distribution.
     * Neither the name of Intel Corporation nor the names of its contributors
       may be used to endorse or promote products derived from this software
       without specific prior written permission.

 THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
 AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
 IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
 DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE
 FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
 DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
 SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
 CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
 OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
 OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*****************************************************************************/

#ifndef __ZUC_TEST_VECTORS_H__
#define __ZUC_TEST_VECTORS_H__

#define MAX_BUFFER_LENGTH_IN_BITS  5670 /* biggest test is EIA test 5 */
#define MAX_BUFFER_LENGTH_IN_BYTES ((MAX_BUFFER_LENGTH_IN_BITS) + 7) / 8
#define NUM_ZUC_ALG_TESTS          3
#define NUM_ZUC_EEA3_TESTS         5
#ifdef __aarch64__
#define NUM_ZUC_256_EIA3_TESTS     15
#endif

#ifdef __aarch64__
typedef struct test256EIA3_vectors_t {
        uint8_t CK[32];
        uint8_t IV[25];
        uint32_t length_in_bits;
        uint32_t iv_length;
        uint8_t message[MAX_BUFFER_LENGTH_IN_BYTES];
        uint8_t mac4[4];
        uint8_t mac8[8];
        uint8_t mac16[16];
} test256EIA_vectors_t;
#endif

#ifdef __aarch64__
const struct test256EIA3_vectors_t test256EIA3_vectors[] = {
        {
                /* Test 1 */
                /* Key */
                { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
                  0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
                  0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 },
                /* IV */
                { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
                  0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 },
                400,
                /* IV length */
                25,
                { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
                  0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
                  0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
                  0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 },
                { 0x9B, 0x97, 0x2A, 0x74 },
                { 0x67, 0x3e, 0x54, 0x99, 0x00, 0x34, 0xd3, 0x8c },
                { 0xd8, 0x5e, 0x54, 0xbb, 0xcb, 0x96, 0x00, 0x96, 0x70, 0x84, 0xc9, 0x52, 0xa1,
                  0x65, 0x4b, 0x26 },
        },
        /* Test 2 */
        {
                /* Key */
                { 0x8f, 0x8e, 0xf9, 0xd8, 0xfb, 0x0a, 0xce, 0x2b, 0x23, 0x19, 0x48,
                  0x42, 0xcb, 0x5c, 0x6d, 0x98, 0x1e, 0x71, 0x68, 0x74, 0xe1, 0xdf,
                  0xeb, 0xe0, 0xf2, 0x46, 0x02, 0x71, 0xbb, 0x69, 0x0d, 0x9e },
                /* IV */
                { 0x2c, 0xe8, 0x87, 0x0f, 0x8c, 0x7f, 0x47, 0x2a, 0x02, 0x2d, 0x24, 0xcd,
                  0x23, 0x3f, 0x4d, 0x0a, 0x40, 0x0d, 0x12, 0xdd, 0xc4, 0x16, 0x26 },
                1600,
                /* IV length */
                23,
                { 0x05, 0xa8, 0xc3, 0x4b, 0x70, 0x9c, 0x97, 0x71, 0x67, 0x70, 0xa5, 0xa3, 0x08,
                  0x60, 0xca, 0x25, 0x0a, 0x8b, 0xb5, 0xc1, 0xc9, 0xd5, 0x8c, 0x7d, 0xfb, 0x00,
                  0x3b, 0xc0, 0x9d, 0xe1, 0x09, 0x9f, 0xcc, 0x22, 0x8c, 0xf6, 0x12, 0x6f, 0xb9,
                  0x1e, 0xc9, 0x45, 0x43, 0x43, 0x25, 0x7a, 0x2b, 0xba, 0x64, 0x4b, 0x8c, 0x91,
                  0x77, 0xc8, 0xfd, 0xce, 0x01, 0xcf, 0xab, 0x6b, 0xe6, 0xc2, 0x48, 0x80, 0x82,
                  0x77, 0xad, 0xb8, 0xb9, 0x8d, 0x1f, 0xd7, 0x48, 0x0b, 0x73, 0x4d, 0x98, 0x96,
                  0x12, 0xd5, 0xf1, 0x86, 0xfd, 0xa1, 0x12, 0x50, 0x9a, 0x38, 0x07, 0x37, 0xd5,
                  0xa3, 0xd0, 0x21, 0xfe, 0x55, 0x7a, 0x8f, 0xff, 0xe0, 0x4f, 0x25, 0x9c, 0x73,
                  0x01, 0x06, 0x66, 0xff, 0x10, 0xa4, 0xdd, 0xd4, 0x2a, 0xbf, 0x0f, 0x5a, 0xa2,
                  0x29, 0x64, 0xd9, 0x99, 0xc8, 0x46, 0xe6, 0x46, 0x48, 0x4d, 0x56, 0xe9, 0x02,
                  0x17, 0xa8, 0x14, 0x28, 0x13, 0x22, 0xf0, 0xd4, 0x43, 0xbe, 0xa0, 0x64, 0xd5,
                  0x28, 0x99, 0x27, 0x24, 0x5d, 0x7c, 0x25, 0x46, 0xd6, 0xdf, 0x2c, 0x05, 0x70,
                  0x5a, 0x55, 0xcd, 0xf6, 0xe7, 0xdb, 0x3d, 0x94, 0x67, 0xfa, 0x67, 0x15, 0xe3,
                  0x84, 0x96, 0x26, 0xee, 0xf4, 0x22, 0xaf, 0x2f, 0xa4, 0x6e, 0xda, 0x2f, 0x4a,
                  0xa0, 0xcd, 0x10, 0x72, 0x85, 0xb6, 0x45, 0x3b, 0x22, 0xb8, 0x1f, 0xe0, 0x3c,
                  0xf9, 0x64, 0x29, 0xb4, 0x46 },
                { 0x8d, 0x74, 0x8b, 0x71 },
                { 0xe5, 0x1d, 0xf2, 0x0a, 0x9e, 0x74, 0x06, 0xac },
                { 0x4d, 0x40, 0x5d, 0x6e, 0xf7, 0xf8, 0xaf, 0xad, 0xd6, 0x71, 0x71, 0x03, 0xdf,
                  0x92, 0x28, 0x20 },
        },
        {
                /* Test 3 */
                /* Key */
                { 0x92, 0xf9, 0x27, 0xe8, 0xab, 0x48, 0x46, 0xdb, 0x2f, 0xa3, 0x61,
                  0x36, 0x7e, 0x89, 0xe1, 0x17, 0xc9, 0x99, 0x57, 0x63, 0xe0, 0xe4,
                  0x4c, 0xce, 0x20, 0x03, 0x8a, 0x9c, 0x9a, 0x44, 0xca, 0x64 },
                /* IV */
                { 0x7d, 0x51, 0xfb, 0x42, 0xf8, 0x7e, 0x62, 0xfa, 0x60, 0x25, 0xb9, 0x2b,
                  0x4e, 0xd6, 0x1c, 0x2e, 0xcc, 0x6c, 0x65, 0x18, 0x1e, 0x9d, 0x04 },
                800,
                /* IV length */
                23,
                { 0xf6, 0x6e, 0x21, 0x54, 0xb9, 0x60, 0xb5, 0x90, 0xdc, 0x35, 0xaf, 0xb9, 0x9d,
                  0x03, 0xf9, 0xbe, 0x58, 0xf8, 0x7c, 0x5c, 0x03, 0xdb, 0x72, 0x2e, 0xa6, 0x34,
                  0xff, 0x43, 0x8d, 0xcf, 0xd4, 0xa7, 0x2a, 0x52, 0xae, 0x3a, 0xb8, 0xc7, 0x11,
                  0xd8, 0x19, 0xd3, 0x94, 0x66, 0x84, 0x10, 0xf0, 0x81, 0x45, 0xc5, 0x0b, 0x05,
                  0xe6, 0x89, 0xc6, 0xc9, 0xb4, 0x25, 0x7b, 0xb7, 0x89, 0x42, 0xd4, 0x6c, 0x1a,
                  0xfd, 0x00, 0x42, 0x80, 0x9d, 0x10, 0x5e, 0x68, 0xd6, 0x02, 0x13, 0x07, 0x55,
                  0x08, 0x24, 0xe5, 0x9e, 0x6b, 0xf3, 0xea, 0x04, 0xd7, 0xd7, 0x8f, 0x0a, 0x48,
                  0x02, 0x8c, 0x98, 0xd5, 0x68, 0xee, 0x11, 0x93, 0x22 },
                { 0xf2, 0xef, 0xfb, 0xf7 },
                { 0x5a, 0x99, 0xe9, 0x23, 0xfa, 0xf1, 0xec, 0xbb },
                { 0x0b, 0xfb, 0x8f, 0xff, 0x65, 0xaf, 0x6a, 0x69, 0xea, 0xde, 0xbd, 0x94, 0x79,
                  0x7b, 0x08, 0xa5 },
        },
        {
                /* Test 4 */
                /* Key */
                { 0xa7, 0x72, 0xf5, 0xfe, 0x9d, 0x81, 0xd1, 0xcf, 0x22, 0x8e, 0x45,
                  0x53, 0x67, 0x75, 0xac, 0xc9, 0x04, 0x19, 0x57, 0x55, 0x0f, 0x6c,
                  0x39, 0xf9, 0xc5, 0x1b, 0x1e, 0x9e, 0xbb, 0x22, 0xa2, 0xf5 },
                /* IV */
                { 0xce, 0x51, 0x11, 0x83, 0x9b, 0x64, 0x4d, 0x20, 0x51, 0x92, 0x71, 0x3b,
                  0x43, 0x47, 0xf9, 0x38, 0x79, 0x0f, 0xd2, 0x59, 0xbc, 0x35, 0xd3 },
                400,
                /* IV length */
                23,
                { 0xad, 0x2a, 0x9a, 0x9a, 0x7e, 0xb8, 0xb9, 0x72, 0xc5, 0x50, 0xe8, 0x28, 0x5e,
                  0x17, 0xda, 0xa2, 0x4c, 0x9a, 0xeb, 0x61, 0x72, 0xc6, 0xa7, 0x06, 0x54, 0x32,
                  0xa6, 0x5b, 0xc5, 0x8b, 0xd7, 0xa2, 0xe0, 0x5e, 0x18, 0xf5, 0x41, 0x8e, 0xa8,
                  0x6e, 0x50, 0xd9, 0xde, 0x67, 0x28, 0x04, 0xee, 0x22, 0xa5, 0x72 },
                { 0x18, 0x3d, 0xf5, 0xf7 },
                { 0x50, 0xa0, 0xc4, 0x24, 0xa9, 0x25, 0xf4, 0x5b },
                { 0x4b, 0xde, 0xd3, 0x15, 0xa4, 0x80, 0xa7, 0xe4, 0x02, 0xe4, 0xc4, 0x48, 0x90,
                  0xfe, 0x62, 0xf5 },
        },
        { /* Test 5 */
          /* Key */
          { 0xf8, 0xa0, 0x45, 0x4f, 0x6d, 0xea, 0x74, 0x6e, 0x4c, 0xd1, 0x6e,
            0xb0, 0xc3, 0xa2, 0x1f, 0x57, 0xeb, 0x6f, 0x35, 0x2d, 0x6a, 0x02,
            0x5b, 0x35, 0x32, 0xba, 0x47, 0x3f, 0x1f, 0x0e, 0xdd, 0xc9 },
          /* IV */
          { 0x07, 0x90, 0xeb, 0x7d, 0x09, 0x6d, 0xc1, 0xf1, 0x86, 0x47, 0xea, 0x57,
            0xe4, 0xb8, 0x92, 0xb1, 0x4e, 0x3b, 0x2d, 0x62, 0xaa, 0x53, 0x6f },
          400,
          /* IV length */
          23,
          { 0xf7, 0xc3, 0xc4, 0x82, 0xe7, 0x20, 0x76, 0xa2, 0x78, 0x5d, 0xe1, 0xcb, 0xa5,
            0x3f, 0x7d, 0x7c, 0xa3, 0x84, 0x0b, 0x69, 0xff, 0x3b, 0x19, 0xb5, 0x6b, 0x9f,
            0x25, 0x04, 0x35, 0xad, 0x89, 0x3b, 0xad, 0xba, 0xa5, 0xe1, 0xe8, 0x4e, 0xa4,
            0xf5, 0x49, 0x84, 0x9a, 0x2c, 0x71, 0xb1, 0xd6, 0xc1, 0x1b, 0xdc },
          { 0xb8, 0xbf, 0x02, 0x13 },
          { 0x2c, 0xfc, 0xa3, 0x59, 0x33, 0x50, 0xd8, 0xee },
          { 0x9c, 0x6e, 0xd5, 0xf9, 0x63, 0x95, 0xa7, 0x28, 0xe1, 0x6b, 0xb2, 0x8a, 0x0e, 0x5b,
            0x90, 0x72 } },
        {
                /* Test 6 */
                /* Key */
                { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
                  0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
                  0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 },
                /* IV */
                { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
                  0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 },
                4000,
                /* IV length */
                25,
                { 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11,
                  0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11,
                  0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11,
                  0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11,
                  0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11,
                  0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11,
                  0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11,
                  0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11,
                  0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11,
                  0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11,
                  0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11,
                  0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11,
                  0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11,
                  0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11,
                  0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11,
                  0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11,
                  0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11,
                  0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11,
                  0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11,
                  0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11,
                  0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11,
                  0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11,
                  0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11,
                  0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11,
                  0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11,
                  0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11,
                  0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11,
                  0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11,
                  0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11,
                  0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11,
                  0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11,
                  0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11,
                  0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11,
                  0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11,
                  0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11,
                  0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11,
                  0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11,
                  0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11,
                  0x11, 0x11, 0x11, 0x11, 0x11, 0x11 },
                { 0x87, 0x54, 0xf5, 0xcf },
                { 0x13, 0x0d, 0xc2, 0x25, 0xe7, 0x22, 0x40, 0xcc },
                { 0xdf, 0x1e, 0x83, 0x07, 0xb3, 0x1c, 0xc6, 0x2b, 0xec, 0xa1, 0xac, 0x6f, 0x81,
                  0x90, 0xc2, 0x2f },
        },
        {
                /* Test 7 */
                /* Key */
                { 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
                  0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
                  0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff },
                /* IV */
                { 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
                  0xff, 0xff, 0xff, 0xff, 0x3f, 0x3f, 0x3f, 0x3f, 0x3f, 0x3f, 0x3f, 0x3f },
                400,
                /* IV length */
                25,
                { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
                  0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
                  0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
                  0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 },
                { 0x1f, 0x30, 0x79, 0xb4 },
                { 0x8c, 0x71, 0x39, 0x4d, 0x39, 0x95, 0x77, 0x25 },
                { 0xa3, 0x5b, 0xb2, 0x74, 0xb5, 0x67, 0xc4, 0x8b, 0x28, 0x31, 0x9f, 0x11, 0x1a,
                  0xf3, 0x4f, 0xbd },
        },
        {
                /* Test 8 */
                /* Key */
                { 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
                  0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
                  0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff },
                /* IV */
                { 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
                  0xff, 0xff, 0xff, 0xff, 0x3f, 0x3f, 0x3f, 0x3f, 0x3f, 0x3f, 0x3f, 0x3f },
                4000,
                /* IV length */
                25,
                { 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11,
                  0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11,
                  0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11,
                  0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11,
                  0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11,
                  0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11,
                  0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11,
                  0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11,
                  0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11,
                  0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11,
                  0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11,
                  0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11,
                  0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11,
                  0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11,
                  0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11,
                  0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11,
                  0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11,
                  0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11,
                  0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11,
                  0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11,
                  0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11,
                  0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11,
                  0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11,
                  0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11,
                  0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11,
                  0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11,
                  0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11,
                  0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11,
                  0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11,
                  0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11,
                  0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11,
                  0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11,
                  0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11,
                  0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11,
                  0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11,
                  0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11,
                  0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11,
                  0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11,
                  0x11, 0x11, 0x11, 0x11, 0x11, 0x11 },
                { 0x5c, 0x7c, 0x8b, 0x88 },
                { 0xea, 0x1d, 0xee, 0x54, 0x4b, 0xb6, 0x22, 0x3b },
                { 0x3a, 0x83, 0xb5, 0x54, 0xbe, 0x40, 0x8c, 0xa5, 0x49, 0x41, 0x24, 0xed, 0x9d,
                  0x47, 0x32, 0x05 },
        },
        {
                /* Test 9 */
                /* Key */
                { 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
                  0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
                  0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff },
                /* IV */
                { 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
                  0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff },
                400,
                /* IV length */
                23,
                { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
                  0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
                  0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
                  0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 },
                { 0x1f, 0x30, 0x79, 0xb4 },
                { 0x8c, 0x71, 0x39, 0x4d, 0x39, 0x95, 0x77, 0x25 },
                { 0xa3, 0x5b, 0xb2, 0x74, 0xb5, 0x67, 0xc4, 0x8b, 0x28, 0x31, 0x9f, 0x11, 0x1a,
                  0xf3, 0x4f, 0xbd },
        },
        { /* Test 10 */
          /* Key */
          { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
            0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
            0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 },
          /* IV */
          { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
            0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 },
          272,
          /* IV length */
          25,
          { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
            0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
            0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 },
          { 0xe7, 0x38, 0x1d, 0x2a },
          { 0x03, 0xa6, 0xe4, 0xa4, 0x94, 0xe7, 0x26, 0x0c },
          { 0x41, 0x07, 0x03, 0x9b, 0x7d, 0x83, 0xb8, 0xb6, 0x57, 0xc2, 0x34, 0xb3, 0xd1, 0xa7,
            0x20, 0x6a } },
        { /* Test 11 */
          /* Key */
          { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
            0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
            0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 },
          /* IV */
          { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
            0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 },
          272,
          /* IV length */
          25,
          { 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01,
            0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01,
            0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01 },
          { 0x56, 0x7b, 0x5, 0xfa },
          { 0xdc, 0x6b, 0x62, 0x68, 0x7e, 0x90, 0xf1, 0x00 },
          { 0xdb, 0xc6, 0x76, 0xad, 0xd9, 0xb2, 0x23, 0x2d, 0xa3, 0xc5, 0xf2, 0xfd, 0xf0, 0xfb,
            0xe9, 0x8a } },
        {
                /* Test 12 */
                /* Key */
                { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
                  0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
                  0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 },
                /* IV */
                { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
                  0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 },
                5120,
                /* IV length */
                25,
                {
                        0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11,
                        0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11,
                        0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11,
                        0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11,
                        0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11,
                        0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11,
                        0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11,
                        0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11,
                        0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11,
                        0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11,
                        0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11,
                        0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11,
                        0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11,
                        0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11,
                        0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11,
                        0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11,
                        0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11,
                        0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11,
                        0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11,
                        0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11,
                        0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11,
                        0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11,
                        0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11,
                        0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11,
                        0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11,
                        0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11,
                        0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11,
                        0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11,
                        0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11,
                        0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11,
                        0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11,
                        0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11,
                        0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11,
                        0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11,
                        0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11,
                        0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11,
                        0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11,
                        0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11,
                        0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11,
                        0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11,
                        0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11,
                        0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11,
                        0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11,
                        0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11,
                        0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11,
                        0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11,
                        0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11,
                        0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11,
                        0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11,
                        0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11,
                        0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11,
                        0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11,
                        0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11,
                        0x11, 0x11, 0x11, 0x11,
                },
                { 0x72, 0xc4, 0x7d, 0x50 },
                { 0xa5, 0x3b, 0x6c, 0xd6, 0x50, 0xef, 0xb5, 0x73 },
                { 0xe7, 0xbc, 0x9c, 0x1b, 0x02, 0x79, 0x27, 0x7b, 0x23, 0x48, 0x4b, 0xcf, 0x2e,
                  0x70, 0xe9, 0x5b },
        },
        /* Add 3 cases, whose message length is not N*8 */
        {
        /* Test 13 */
                /* Key */
                {0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
                 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
                 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
                 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
                },
                /* IV */
                {0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
                 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
                 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
                 0x00
                },
                399,
                /* IV length */
                25,
                {0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
                 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
                 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
                 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
                 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
                 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
                 0x00, 0x00
                },
                {0x46, 0x49, 0x70, 0xCC},
                {0xCF, 0x8E, 0x99, 0x98, 0x7A, 0xE5, 0x67, 0x63},
                {0x44, 0x6B, 0xF3, 0xEC, 0x73, 0xD4, 0xE0, 0x4C,
                 0x5B, 0x4F, 0x1F, 0x23, 0xD9, 0x26, 0xA8, 0x15
                },
        },
        {
        /* Test 14 */
                /* Key */
                {0x8f, 0x8e, 0xf9, 0xd8, 0xfb, 0x0a, 0xce, 0x2b,
                 0x23, 0x19, 0x48, 0x42, 0xcb, 0x5c, 0x6d, 0x98,
                 0x1e, 0x71, 0x68, 0x74, 0xe1, 0xdf, 0xeb, 0xe0,
                 0xf2, 0x46, 0x02, 0x71, 0xbb, 0x69, 0x0d, 0x9e
                },
                /* IV */
                {0x2c, 0xe8, 0x87, 0x0f, 0x8c, 0x7f, 0x47, 0x2a,
                 0x02, 0x2d, 0x24, 0xcd, 0x23, 0x3f, 0x4d, 0x0a,
                 0x40, 0x0d, 0x12, 0xdd, 0xc4, 0x16, 0x26
                },
                501,
                /* IV length */
                23,
                {0x05, 0xa8, 0xc3, 0x4b, 0x70, 0x9c, 0x97, 0x71,
                 0x67, 0x70, 0xa5, 0xa3, 0x08, 0x60, 0xca, 0x25,
                 0x0a, 0x8b, 0xb5, 0xc1, 0xc9, 0xd5, 0x8c, 0x7d,
                 0xfb, 0x00, 0x3b, 0xc0, 0x9d, 0xe1, 0x09, 0x9f,
                 0xcc, 0x22, 0x8c, 0xf6, 0x12, 0x6f, 0xb9, 0x1e,
                 0xc9, 0x45, 0x43, 0x43, 0x25, 0x7a, 0x2b, 0xba,
                 0x64, 0x4b, 0x8c, 0x91, 0x77, 0xc8, 0xfd, 0xce,
                 0x01, 0xcf, 0xab, 0x6b, 0xe6, 0xc2, 0x48, 0x80,
                 0x82, 0x77, 0xad, 0xb8, 0xb9, 0x8d, 0x1f, 0xd7,
                 0x48, 0x0b, 0x73, 0x4d, 0x98, 0x96, 0x12, 0xd5,
                 0xf1, 0x86, 0xfd, 0xa1, 0x12, 0x50, 0x9a, 0x38,
                 0x07, 0x37, 0xd5, 0xa3, 0xd0, 0x21, 0xfe, 0x55,
                 0x7a, 0x8f, 0xff, 0xe0, 0x4f, 0x25, 0x9c, 0x73,
                 0x01, 0x06, 0x66, 0xff, 0x10, 0xa4, 0xdd, 0xd4,
                 0x2a, 0xbf, 0x0f, 0x5a, 0xa2, 0x29, 0x64, 0xd9,
                 0x99, 0xc8, 0x46, 0xe6, 0x46, 0x48, 0x4d, 0x56,
                 0xe9, 0x02, 0x17, 0xa8, 0x14, 0x28, 0x13, 0x22,
                 0xf0, 0xd4, 0x43, 0xbe, 0xa0, 0x64, 0xd5, 0x28,
                 0x99, 0x27, 0x24, 0x5d, 0x7c, 0x25, 0x46, 0xd6,
                 0xdf, 0x2c, 0x05, 0x70, 0x5a, 0x55, 0xcd, 0xf6,
                 0xe7, 0xdb, 0x3d, 0x94, 0x67, 0xfa, 0x67, 0x15,
                 0xe3, 0x84, 0x96, 0x26, 0xee, 0xf4, 0x22, 0xaf,
                 0x2f, 0xa4, 0x6e, 0xda, 0x2f, 0x4a, 0xa0, 0xcd,
                 0x10, 0x72, 0x85, 0xb6, 0x45, 0x3b, 0x22, 0xb8,
                 0x1f, 0xe0, 0x3c, 0xf9, 0x64, 0x29, 0xb4, 0x46
                },
                {0xE2, 0x98, 0x92, 0x88},
                {0xD8, 0xC0, 0xDE, 0xBE,
                 0x14, 0xA5, 0x15, 0xD2},
                {0x82, 0xE0, 0x1E, 0xFF,
                 0x0F, 0x86, 0xCB, 0xD5,
                 0x46, 0xAC, 0xBB, 0x96,
                 0xE8, 0xCE, 0xAB, 0x9E},
        },
        {
        /* Test 15 */
                /* Key */
                {0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
                 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
                 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
                 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff
                },
                /* IV */
                {0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
                 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
                 0xff, 0x3f, 0x3f, 0x3f, 0x3f, 0x3f, 0x3f, 0x3f,
                 0x3f
                },
                396,
                /* IV length */
                25,
                {0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
                 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
                 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
                 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
                 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
                 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
                 0xff, 0xff
                },
                {0x94, 0x19, 0xE9, 0xBE},
                {0x9B, 0x93, 0xA9, 0x40,
                 0xAF, 0x55, 0xC2, 0xF9},
                {0xFD, 0xA6, 0x5D, 0xDB,
                 0xA7, 0xF0, 0x74, 0x4F,
                 0x9F, 0xDA, 0x15, 0x0F,
                 0x35, 0x4E, 0xE8, 0x26},
        },
};
#endif /* __aarch64__ */
#endif
